package com.jic.purchase.model.entity;
import java.math.BigDecimal;
import java.util.Date;
import com.jic.common.base.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@ApiModel(description = " purchase_contract_product_rel ")
public class PurchaseContractProductRel extends BaseEntity {

    @ApiModelProperty(notes = "")
    private Long id;

    @ApiModelProperty(notes = "合同编码")
    private Long contractCode;

    @ApiModelProperty(notes = "商品编码")
    private String productCode;

    @ApiModelProperty(notes = "采购单编码")
    private String purchaseCode;

    @ApiModelProperty(notes = "业务类型：1-采购单；2-代销单；3-经销单；")
    private Integer busiType;

    @ApiModelProperty(notes = "根据业务类型不同，存入不同类型的编号，如果是采购单，则存采购单编码；")
    private String busiCode;

    @ApiModelProperty(notes = "供应商编码")
    private String supplierCode;

    @ApiModelProperty(notes = "供应商名称")
    private String supplierName;

    @ApiModelProperty(notes = "采购数量")
    private Integer purchaseNum;

    @ApiModelProperty(notes = "交易币别,CNY-人民币;USD-美元....")
    private String tradeCurrency;

    @ApiModelProperty(notes = "商品计量单位")
    private String productUnit;

    @ApiModelProperty(notes = "对人命币汇率，精确到7位小数；如果值小于1，只存纯小数，不存带百分值,例如越南盾兑人民币，则存0.0003068；不允许存0.03068%的分子0.03068；")
    private BigDecimal exchangeRate;

    @ApiModelProperty(notes = "含税金额；精确4位小数；")
    private BigDecimal amountWithTax;

    @ApiModelProperty(notes = "未税采购价")
    private BigDecimal amountWithoutTax;

    @ApiModelProperty(notes = "实际发货量")
    private Integer realDeliveryNum;

    @ApiModelProperty(notes = "实际收货量")
    private Integer realRecievedNum;

    @ApiModelProperty(notes = "商品名称")
    private String productName;

    @ApiModelProperty(notes = "商品条码（条形码）")
    private String productBarNo;

    @ApiModelProperty(notes = "商品规则")
    private String productSize;

    @ApiModelProperty(notes = "转换率")
    private BigDecimal transferRate;

    @ApiModelProperty(notes = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(notes = "起订量")
    private Integer minNum;

    @ApiModelProperty(notes = "最大定量")
    private Integer maxNum;

    @ApiModelProperty(notes = "运输方式（1-铁路；2-空运；3-公路；4-河运；5-海运；6-其他）")
    private Integer transportType;

    @ApiModelProperty(notes = "是否包邮：0-不含；1-包含；")
    private Integer hasTransportPrice;

    @ApiModelProperty(notes = "运费")
    private BigDecimal transportPrice;

    @ApiModelProperty(notes = "原税率")
    private BigDecimal originTaxRate;

    @ApiModelProperty(notes = "原不含税价格；")
    private BigDecimal originAmountWithoutTax;

    @ApiModelProperty(notes = "原含税价格；")
    private BigDecimal originAmountWithTax;

    @ApiModelProperty(notes = "原起订量")
    private Integer originMinNum;

    @ApiModelProperty(notes = "原最大订货量")
    private Integer originMaxNum;

    @ApiModelProperty(notes = "原运输方式（1-铁路；2-空运；3-公路；4-河运；5-海运；6-其他）")
    private Integer originTransportType;

    @ApiModelProperty(notes = "原是否包含运费(0-不含；1-包含)")
    private Integer originHasTransportPrice;

    @ApiModelProperty(notes = "状态")
    private Integer status;

}
